package com.maya.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller

public class UserLogoutController  {
	
	@RequestMapping(value = "/logout")
	public String logout(HttpSession session){
       	
		session.removeAttribute("currUser");
                       
        return "redirect:/viewallquestions";
    }
    
}
